﻿using DayuCode.Designer.Entity;
using DayuCode.Designer.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DayuCode.Designer.BLL
{
    public class ProjectManager
    {
        //public static IList<ProjectCatalog> GetAllProjectCatalogs()
        //{
        //    IList<ProjectCatalog> catalogs = QHttpClient.PostList<ProjectCatalog>("api/base/dayucode_projectCatalogHandler/getProjectCatalogs", null);
        //    return catalogs;
        //}

        public static Project GetProject(long projectId)
        {
            Project project = QHttpClient.Post<Project>("api/base/dayucode_projectHandler/getProject", new { id = projectId });
            return project;
        }

        //public static IList<Project> GetAllProjects()
        //{
        //    IList<Project> catalogs = QHttpClient.PostList<Project>("api/base/dayucode_projectHandler/getAllProjects", null);
        //    return catalogs;
        //}

        //public static IList<Func> GetAllFunc(long projectId)
        //{
        //    IList<Func> funcs = QHttpClient.PostList<Func>("api/base/dayucode_funcHandler/getAllFuncs", new { projectId });
        //    return funcs;
        //}
    }
}
